﻿<Window
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"
	x:Class="WPFRadio.MainWindow"
	x:Name="Window"
	Title="WPFRadio"
	Width="376" Height="80" AllowsTransparency="True" WindowStyle="None" Background="Transparent" MouseLeftButtonDown="Window_MouseLeftButtonDown" HorizontalContentAlignment="Center" ResizeMode="NoResize" ShowInTaskbar="False" WindowStartupLocation="Manual" Closing="Window_Closing">
	<Window.Resources>
		<Storyboard x:Key="Idle" AutoReverse="True" RepeatBehavior="Forever">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Stroke).(GradientBrush.GradientStops)[1].(GradientStop.Offset)" Storyboard.TargetName="MainWindow1">
				<EasingDoubleKeyFrame KeyTime="0" Value="0.013"/>
				<SplineDoubleKeyFrame KeyTime="0:0:1.44" Value="0.919"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Stroke).(GradientBrush.GradientStops)[0].(GradientStop.Offset)" Storyboard.TargetName="MainWindow1">
				<SplineDoubleKeyFrame KeyTime="0:0:1.44" Value="0.983"/>
			</DoubleAnimationUsingKeyFrames>
			<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Stroke).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="MainWindow1">
				<EasingColorKeyFrame KeyTime="0" Value="#FF5587BE"/>
				<SplineColorKeyFrame KeyTime="0:0:1.44" Value="#FF665F5F"/>
			</ColorAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="Hide">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="MainWindow1">
				<EasingDoubleKeyFrame KeyTime="0" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:2" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="MediaText">
				<EasingDoubleKeyFrame KeyTime="0" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:2" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
	</Window.Resources>
	<Window.Triggers>
		<EventTrigger RoutedEvent="FrameworkElement.Loaded">
			<BeginStoryboard x:Name="Idle_BeginStoryboard" Storyboard="{StaticResource Idle}"/>
		</EventTrigger>
        <EventTrigger RoutedEvent="FrameworkElement.Unloaded">
            <BeginStoryboard x:Name="Hide_BeginStoryboard" Storyboard="{StaticResource Hide}"/>
        </EventTrigger>
    </Window.Triggers>

    



    <Grid x:Name="LayoutRoot">
		<Rectangle x:Name="MainWindow1" Fill="Black" Margin="8" RadiusX="12" RadiusY="12" d:LayoutOverrides="VerticalAlignment, GridBox" StrokeThickness="2">
			<Rectangle.OpacityMask>
				<LinearGradientBrush EndPoint="0.5,1" MappingMode="RelativeToBoundingBox" StartPoint="0.5,0">
					<GradientStop Color="Black" Offset="0"/>
					<GradientStop Color="White" Offset="1"/>
				</LinearGradientBrush>
			</Rectangle.OpacityMask>
			<Rectangle.Stroke>
				<LinearGradientBrush EndPoint="0.5,1" MappingMode="RelativeToBoundingBox" StartPoint="0.5,0">
					<GradientStop Color="#FF312727" Offset="0.983"/>
					<GradientStop Color="#FF665F5F" Offset="0.013"/>
				</LinearGradientBrush>
			</Rectangle.Stroke>
		</Rectangle>
		<TextBlock x:Name="MediaText" Margin="40,16,64,0" TextWrapping="Wrap" Text="Hello" Foreground="#FF17C2C6" Height="16" VerticalAlignment="Top" Background="Black"/>
		<TextBlock x:Name="TextStatus" Margin="48,36,64,28.04" TextWrapping="Wrap" Text="TextBlock" d:LayoutOverrides="Height"/>
	</Grid>
	
</Window>